package com.design.pattern.abstraceFactory;

import com.design.pattern.abstraceFactory.ingredient.ChicagoPizzaIngredientFactory;
import com.design.pattern.abstraceFactory.ingredient.PizzaIngredientFactory;

public class DependentPizzaStore extends PizzaStore {
    Pizza createPizza() {
        Pizza pizza;
        PizzaIngredientFactory pizzaIngredientFactory = new ChicagoPizzaIngredientFactory();
        pizza = new ClamPizza(pizzaIngredientFactory);
        pizza.setName("Dependent clam");
        return pizza;
    }
}